package com.czxy.client;

import com.czxy.vo.SearchSku;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author 张青卯
 */
@RequestMapping
@FeignClient(value = "web-service")
public interface SkuClient {

    /**
     * findEsData 远程调用服务
     * @return ResponseEntity<Object>
     */
    @GetMapping("/esData")
    ResponseEntity<List<SearchSku>> findEsData();

}
